define(['util', 'ajax'], function (util, ajax) {
    "use strict";

    var exports = {}, ViewModel;

    ViewModel = function () {
        var self = this;

        self.advanceSearchValue = ko.observable();

        self.advanceSearch = function () {
            window.location = "Search?id=" + self.advanceSearchValue();
        };
    };

    exports.exec = function (sectionId) {
        var viewModel = new ViewModel();
        ko.applyBindings(viewModel, document.getElementById(sectionId));
    };

    return exports;
});